/*
 * @Author: 李晓丹 
 * @Date: 2020-08-25 15:06:11 
 * @Last Modified by: 李晓丹
 * @Last Modified time: 2020-08-28 09:55:28
 */

import request from '@/utils/request';
export default {
    //登录
    login:(params) => request.post('/admin/login',params),
    //获取用户信息
    getUserInfo:() => request.get('/admin/getUserInfo'),
    //获取echarts数据
    getEchartsData:() => request.get('/echartsData'),


    //获取banner列表
    getBannerList:() => request.get('/home/banner'),
    //上传图片
    uploadImage:params => request.post('/upimage',params),
    //添加banner
    addBanner:params => request.post('/home/addBanner',params),
    //编辑banner
    editBanner:params => request.post('/home/editBanner',params)
}